package Put_in;

import java.util.Scanner;

/**
 * @author dx
 * @version 1.0
 * @date 2022/4/23 13:55
 * @description:
 */
public class test3 {

    public static void main(String[] args){
        String num;
        int count = 0;
        Scanner c = new Scanner(System.in);
        String test[] = new String[100];
        while (!(num = c.next()).equals("abc")){
            test[count++] = num;
        }
        for(int i=0;i<count;i++){
            System.out.println(test[i]);
        }
    }
}
